<template>
<div class="showMap">
</div>
    
</template>

<script>
import location from '@/utils/location.js'
export default {
    data(){
        return{
            currentCity:''

        }
    },
    created(){
        location.initMap('showMap',(city)=>{
           this.currentCity=city
           this.$emit('getlocation',city)           
        })
    }
    
}
</script>